import numpy as np
import pandas as pd
import matplotlib.pyplot as plt


f = open('rl_no_act.txt', 'r')
lines = f.readlines()
data = np.array([])
for line in lines:
    line = line.strip('\n')
    data = np.append(data, float(line))
print("avg: ",np.average(data[900:]))

f = open('rl_all.txt', 'r')
lines = f.readlines()
data = np.array([])
for line in lines:
    line = line.strip('\n')
    data = np.append(data, float(line))
print("avg: ",np.average(data[900:]))


f = open('fix.txt', 'r')
lines = f.readlines()
data = np.array([])
for line in lines:
    line = line.strip('\n')
    data = np.append(data, float(line))
print("avg: ",np.average(data[900:]))